home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1995 #12
/
Monster Media No. 12 (Third Quarter 1995)(Monster Media, Inc.).ISO
/
monster
/
fview.doc
< prev
next >
Wrap
Text File
|
1994-01-20
|
8KB
|
202 lines
FView Version 2.22
-------------------
Copyright 1994
COPYRIGHT NOTICE
This program is public domain and may be freely distributed, providing it is
distributed in the original archive form (or variation thereof, such as a
different archival program) and no charge is made for its redistribution,
except where charges are made for copying services and/or diskettes. The author
holds exclusive rights to the program. No warranty is made, neither expressed
or implied, as to the suitability of the program for a particular purpose. The
author shall not be liable for damages caused by the use, misuse, or abuse of
this program. The program may not be reverse engineered, nor modified.
DESCRIPTION
-----------
FView is a simple, text file viewer program. Since I didn't have one, nor was
able to quite find the one I liked, I built my own. (Like they say, if you
want something done right you gotta do it yourself.)
USAGE
-----
Starting the program is simple. From any DOS prompt, type:
FVIEW {-ns} {-b} filename
This will scan through the specified file, then display it on screen. Much
like DOS's edlin, the filename MUST be specified.
The options are as follows:
If the "-ns" option is specified, no scroll bars will be displayed and
the mouse will not be enabled. Use this if the text file to be viewed
contains lines of 80 characters and you wish to be able to view the entire
line without having to scroll left and right.
If the "-b" option is specified, the program will use BIOS system calls to
write to the screen, rather than its usual method of writing directly to
the screen. This is useful when running FView through DOORWAY, for example,
which may not update the user's screen properly (ie. the user at the other
end of the modem). The option is not recommended for normal use, as using
BIOS calls is significantly slower than writing directly to the computer's
screen, particularly when running under Windows. However, going through a
modem, it wouldn't make a difference.
NAVIGATING THROUGH THE FILE
---------------------------
New in version 2.2 is the addition of horizontal and vertical scroll bars,
which show your relative position within the file. If you have a mouse, you
can use the scroll bars to navigate through the file by clicking in the
scroll bars (they work similar to Windows scroll bars).
While viewing the document, you can scroll up/down/left/right/etc... using
the cursor keys, page up/down keys, home and end keys (HOME takes you to the
beginning of the file, END takes you to the bottom). As you move around, the
current line and column will be display in the status bar.
Note that although the left and right cursor keys scroll a full screen rather
than one character at a time (as the scrolling would be noticably slow), you
can use the box in the horizontal scroll bar to move more precisely. Simply
click on the position box and drag it left or right. Release it where you
want it. This goes for the vertical scroll bar as well, so you can select
exactly where in the file you want to view.
Status line:
Line 32 of 591 ( 1- 79) C:\TEXT.DAT
----- ----- ------- filename displayed here ^^^^^^^^^
| | |
| | +---------------- range of columns on screen
| | (would be 80 chars if scroll bar
| | turned off)
| |
| +----------------------- total number of lines in file
|
+--------------------------------- current line# of first line at the
top of the screen.
Help line:
The help line is used simply as a reminder of what keys may be used to
scroll through the file, search through the file, or quit the program. The
mouse may also be used to click on the help bar as opposed to using the keys
for search and quit (the scroll bars only are used for scrolling).
SEARCHING
---------
To search through a file, hit 'F', or click on 'F' or 'FIND' in the help line.
This will bring up a box to type the text in that you wish to search for. When
you hit ENTER, it will begin searching through the file, starting with the
current line as indicated in the status bar at the top. To quit from the input
box, hit ESC. Note that you cannot abort a search in progress.
While in the input box, standard editing keys are in effect, ie. left/right
cursor keys, home/end, insert, etc. Use CTRL-HOME to erase the input and start
over at the first position (CTRL-X also erases). When you first enter the box,
the last text string (if any) you entered will be displayed. You can edit this
string or start with a new one. If you begin typing characters immediately,
before you move the cursor, the previous text string will be erased first.
To continue a search, hit 'N', or click on 'N' or 'NEXT' in the help line. This
will continue the search from where the last text was found (even if you've
scrolled it off the screen). If you hit 'N' before you've selected text with
'F', then a box will be displayed for you to enter the search text.
Similarly, hit 'P' or click on 'P' or 'PREV' in the help line to search
backwards from the last found text. The program will beep if you have hit 'P'
before entering text with 'F'.
In all 3 cases, if the text string is not found, it will beep and display
"Search string not found". (It doesn't loop back around from the end of the
file to the beginning, or vice-versa).
QUIT
----
To leave the program, hit the ESCape key, or click on "ESC QUIT" in the help
line. You will NOT be asked for confirmation.
NOTES
-----
- If using FView through a bbs door (like DOORWAY), the scroll arrows on the
help line at the bottom of the screen and at the ends of the scroll bars
may not be displayed as arrows on the users' terminal. There are currently
no plans to fix this.
- The file being viewed is not actually read into memory. It is scanned and
the locations of the lines within the file are stored. For this reason,
when viewing a file from a floppy (or other removable media) do not remove
the diskette while viewing. This was to allow files of virtually any size
without memory constraints.
- Although the limit to the number of lines is 20,000, this has no relation
to the size of the file itself. A 512 byte buffer is used when reading in
lines, so theoretically you could view a file of 10,240,000 bytes in size.
-------------------------
Revision History
-------------------------
Date Version Changes
February 1993 2.0 Added Search feature.
Speeded up display when first scanning the file
by only displaying the percentage in 5% increments.
Changed method of programming by using a third
party 'C' Window Library (freely distributable).
June 1993 2.1 Fixed problems with not displaying last line of a
file.
September 1993 2.11 Doubled maximum # of lines from 10,000 to 20,000.
September 1993 2.2 Added scroll bars and mouse support.
October 1993 2.21 Added "-b" option for problems occurring using
FView through the bbs program DOORWAY.
-------------------------
---------------------
Contacting the author
---------------------
I can reached via:
CompuServe: 70620,1445
Internet: plan9!bea77!cgordon@uunet.ca (preferred)
or 70620.1445@CompuServe.com
or Chris_Gordon@MAGIC-BBS.corp.apple.com
Chris Gordon
----------------
Acknowledgements
----------------
P. A. McKenzie for the 'C' Window Library (Copyright 1990, 1991)